<?php
$this->breadcrumbs=array(
	TextbooksModule::t('Classmate') => Yii::app()->createUrl('/textbooks/profile/index'),
	TextbooksModule::t('Manage books'),
);?>

<div class="row">
	<div class="span12">
		<?php $this->widget('bootstrap.widgets.BootGridView', array(
			'type' => 'striped bordered condensed',
			'id' => 'textbook-book-grid',
			'dataProvider' => $model->search(),
			'filter' => $model,
			'columns' => array(
				'title',
				'isbn',
				array(
					'name' => 'price',
					'htmlOptions' => array('style'=>'width: 50px; text-align:center'),
				),
				'author',
				array(
					'class' => 'bootstrap.widgets.BootButtonColumn',
					'htmlOptions' => array('style'=>'width: 50px'),
					'buttons' => array(
						'view' => array(
							'url' => 'Yii::app()->createUrl("/textbooks/book/details", array("book_id"=>$data->id))',
						),
						'update' => array(
							'url' => 'Yii::app()->createUrl("/textbooks/book/edit", array("book_id"=>$data->id))',
						),
						'delete' => array(
							'url' => 'Yii::app()->createUrl("/textbooks/book/delete", array("book_id"=>$data->id))',
						),
					),
				),
			),
		)); ?>
	</div>
</div>